package com.bj58.ecdata.dashboard.constant;

/**
 * 
 * 页面类型
 * 
 * <p>
 * detailed comment
 * 
 * @author guolu 2015-1-26
 * @see
 * @since 1.0
 */
public enum EnumPageType {

	total, detail, list, listanddetail;

	/**
	 * 对应表流量来源表的page_type字段
	 * 
	 * @param cate
	 * @return
	 * @author zhaoxiang 2015-03-09
	 */
	public String getDBName() {
		switch (this) {
		case total:
			return "all";
		case detail:
			return "detail";
		case list:
			return "list";
		case listanddetail:
			return "listanddetail";
		default:
			return "";
		}
	}
	
}
